#coding=utf-8
'''
2016 8 14
@author: DQA wangpeng
'''
#######################################################################
#
#选择不同的路由器，用if控制，比如路由器dlink615，则选择1控制。华为**型号，则选择2控制，类似于开光控制
#
#######################################################################

import unittest
import HTMLTestRunner
import os
import time
from selenium import webdriver
import sys
sys.path.append(r"E:\eclipse\huawei_rader\all_mobile\testcase") 
#Dlink615#Dlink615#Dlink615#Dlink615#Dlink615#Dlink615#Dlink615
#选择不同的路由器，这个是Dlink 路由器

def huawei_5x():
    import testcase.huawei_5x.click_jinghuaqi_1000times
    import testcase.huawei_5x.click_kongtiao_1000times
    import testcase.huawei_5x.click_STB_1000times
    import testcase.huawei_5x.click_tv_1000times
    import testcase.huawei_5x.connect_manytimes
    import testcase.huawei_5x.detect_disconnect
    import testcase.huawei_5x.lock_unlock
    import testcase.huawei_5x.temperature_error
    import testcase.huawei_5x.bluetooth_off_connected
    import testcase.huawei_5x.check_value_autocontrol
    import testcase.huawei_5x.check_value_clock
    import testcase.huawei_5x.check_value_dingshi_control
    import testcase.huawei_5x.just_wait_connect
    import testcase.huawei_5x.factory_setting_30times
    #import testcase.huawei_5x.connect_two_radar
    alltestnames = [
                    testcase.huawei_5x.click_jinghuaqi_1000times.Test,
                    testcase.huawei_5x.click_kongtiao_1000times.Test,
                    testcase.huawei_5x.click_STB_1000times.Test,
                    testcase.huawei_5x.click_tv_1000times.Test,
                    testcase.huawei_5x.connect_manytimes.Test,
                    testcase.huawei_5x.detect_disconnect.Test,
                    testcase.huawei_5x.lock_unlock.Test,
                    testcase.huawei_5x.temperature_error.Test,
                    testcase.huawei_5x.bluetooth_off_connected.Test,
                    testcase.huawei_5x.check_value_autocontrol.Test,
                    testcase.huawei_5x.check_value_clock.Test,
                    testcase.huawei_5x.check_value_dingshi_control.Test,
                    testcase.huawei_5x.just_wait_connect.Test,
                    testcase.huawei_5x.factory_setting_30times.Test,
                    #testcase.huawei_5x.connect_two_radar.Test,
                ]
    print "success read huawei_5x case list"
    return alltestnames


def huawei_honor6():
    import testcase.huawei_honor6.click_jinghuaqi_1000times
    import testcase.huawei_honor6.click_kongtiao_1000times
    import testcase.huawei_honor6.click_STB_1000times
    import testcase.huawei_honor6.click_tv_1000times
    import testcase.huawei_honor6.connect_manytimes
    import testcase.huawei_honor6.detect_disconnect
    #import testcase.huawei_honor6.lock_unlock
    import testcase.huawei_honor6.temperature_error

    import testcase.huawei_honor6.check_value_autocontrol
    import testcase.huawei_honor6.check_value_clock
    import testcase.huawei_honor6.check_value_dingshi_control
    import testcase.huawei_honor6.just_wait_connect
    import testcase.huawei_honor6.bluetooth_off_connected
    import testcase.huawei_honor6.factory_setting
    alltestnames = [
                    testcase.huawei_honor6.click_jinghuaqi_1000times.Test,
                    testcase.huawei_honor6.click_kongtiao_1000times.Test,
                    testcase.huawei_honor6.click_STB_1000times.Test,
                    testcase.huawei_honor6.click_tv_1000times.Test,
                    testcase.huawei_honor6.connect_manytimes.Test,
                    testcase.huawei_honor6.detect_disconnect.Test,
                    #testcase.huawei_honor6.lock_unlock.Test,
                    testcase.huawei_honor6.temperature_error.Test,
                    testcase.huawei_honor6.check_value_autocontrol.Test,
                    testcase.huawei_honor6.check_value_clock.Test,
                    testcase.huawei_honor6.check_value_dingshi_control.Test,
                    testcase.huawei_honor6.just_wait_connect.Test,
                    testcase.huawei_honor6.bluetooth_off_connected.Test,
                    testcase.huawei_honor6.factory_setting.Test,
                ]
    print "success read HUAWEI_honor6 case list"
    return alltestnames

def huawei_p8():
    import testcase.huawei_p8.click_jinghuaqi_1000times
    import testcase.huawei_p8.click_kongtiao_1000times
    import testcase.huawei_p8.click_STB_1000times
    import testcase.huawei_p8.click_tv_1000times
    import testcase.huawei_p8.connect_manytimes
    import testcase.huawei_p8.detect_disconnect
    #import testcase.huawei_p8.lock_unlock
    import testcase.huawei_p8.temperature_error
    import testcase.huawei_p8.bluetooth_off_connected
    import testcase.huawei_p8.check_value_autocontrol
    import testcase.huawei_p8.check_value_clock
    import testcase.huawei_p8.check_value_dingshi_control
    import testcase.huawei_p8.just_wait_connect
    import testcase.huawei_p8.factory_setting
    alltestnames = [
                    testcase.huawei_p8.click_jinghuaqi_1000times.Test,
                    testcase.huawei_p8.click_kongtiao_1000times.Test,
                    testcase.huawei_p8.click_STB_1000times.Test,
                    testcase.huawei_p8.click_tv_1000times.Test,
                    testcase.huawei_p8.connect_manytimes.Test,
                    testcase.huawei_p8.detect_disconnect.Test,
                    #testcase.huawei_p8.lock_unlock.Test,
                    testcase.huawei_p8.temperature_error.Test,
                    testcase.huawei_p8.bluetooth_off_connected.Test,
                    testcase.huawei_p8.check_value_autocontrol.Test,
                    testcase.huawei_p8.check_value_clock.Test,
                    testcase.huawei_p8.check_value_dingshi_control.Test,
                    testcase.huawei_p8.just_wait_connect.Test,
                    testcase.huawei_p8.factory_setting.Test,
                ]
    print "success read HUAWEI_P8  case list"
    return alltestnames

def huawei_mate8():
    import testcase.huawei_mate8.click_jinghuaqi_1000times
    import testcase.huawei_mate8.click_kongtiao_1000times
    import testcase.huawei_mate8.click_STB_1000times
    import testcase.huawei_mate8.click_tv_1000times
    import testcase.huawei_mate8.connect_manytimes
    import testcase.huawei_mate8.detect_disconnect
    #import testcase.huawei_mate8.lock_unlock
    import testcase.huawei_mate8.temperature_error

    import testcase.huawei_mate8.check_value_autocontrol
    import testcase.huawei_mate8.check_value_clock
    import testcase.huawei_mate8.check_value_dingshi_control
    import testcase.huawei_mate8.just_wait_connect
    import testcase.huawei_mate8.factory_setting
    import testcase.huawei_mate8.bluetooth_off_connected
    alltestnames = [
                    testcase.huawei_mate8.click_jinghuaqi_1000times.Test,
                    testcase.huawei_mate8.click_kongtiao_1000times.Test,
                    testcase.huawei_mate8.click_STB_1000times.Test,
                    testcase.huawei_mate8.click_tv_1000times.Test,
                    testcase.huawei_mate8.connect_manytimes.Test,
                    testcase.huawei_mate8.detect_disconnect.Test,
                    #testcase.huawei_mate8.lock_unlock.Test,
                    testcase.huawei_mate8.temperature_error.Test,
                    testcase.huawei_mate8.check_value_autocontrol.Test,
                    testcase.huawei_mate8.check_value_clock.Test,
                    testcase.huawei_mate8.check_value_dingshi_control.Test,
                    testcase.huawei_mate8.just_wait_connect.Test,
                    testcase.huawei_mate8.factory_setting.Test,
                    testcase.huawei_mate8.bluetooth_off_connected.Test,
                ]
    print "success read HUAWEI_mate8  case list"
    return alltestnames

def lenovo_z90():
    import testcase.lenovo_z90.click_jinghuaqi_1000times
    import testcase.lenovo_z90.click_kongtiao_1000times
    import testcase.lenovo_z90.click_STB_1000times
    import testcase.lenovo_z90.click_tv_1000times
    import testcase.lenovo_z90.connect_manytimes
    import testcase.lenovo_z90.detect_disconnect
    #import testcase.lenovo_z90.lock_unlock
    import testcase.lenovo_z90.temperature_error

    import testcase.lenovo_z90.check_value_autocontrol
    import testcase.lenovo_z90.check_value_clock
    import testcase.lenovo_z90.check_value_dingshi_control
    import testcase.lenovo_z90.just_wait_connect
    import testcase.lenovo_z90.factory_setting
    import testcase.lenovo_z90.bluetooth_off_connected
    alltestnames = [
                    testcase.lenovo_z90.click_jinghuaqi_1000times.Test,
                    testcase.lenovo_z90.click_kongtiao_1000times.Test,
                    testcase.lenovo_z90.click_STB_1000times.Test,
                    testcase.lenovo_z90.click_tv_1000times.Test,
                    testcase.lenovo_z90.connect_manytimes.Test,
                    testcase.lenovo_z90.detect_disconnect.Test,
                    #testcase.lenovo_z90.lock_unlock.Test,
                    testcase.lenovo_z90.temperature_error.Test,
                    testcase.lenovo_z90.bluetooth_off_connected.Test,
                    testcase.lenovo_z90.check_value_autocontrol.Test,
                    testcase.lenovo_z90.check_value_clock.Test,
                    testcase.lenovo_z90.check_value_dingshi_control.Test,
                    testcase.lenovo_z90.just_wait_connect.Test,
                    testcase.lenovo_z90.factory_setting.Test,
                    testcase.lenovo_z90.bluetooth_off_connected.Test,
                ]
    print "success read lenovo_z90  case list"
    return alltestnames


def huawei_honor4A():
    import testcase.huawei_honor4A.click_jinghuaqi_1000times
    import testcase.huawei_honor4A.click_kongtiao_1000times
    import testcase.huawei_honor4A.click_STB_1000times
    import testcase.huawei_honor4A.click_tv_1000times
    import testcase.huawei_honor4A.connect_manytimes
    import testcase.huawei_honor4A.detect_disconnect
    import testcase.huawei_honor4A.lock_unlock
    import testcase.huawei_honor4A.temperature_error
    import testcase.huawei_honor4A.bluetooth_off_connected
    import testcase.huawei_honor4A.check_value_autocontrol
    import testcase.huawei_honor4A.check_value_clock
    import testcase.huawei_honor4A.check_value_dingshi_control
    import testcase.huawei_honor4A.just_wait_connect
    import testcase.huawei_honor4A.factory_setting
    #import testcase.huawei_honor4A.connect_two_radar
    alltestnames = [
                    testcase.huawei_honor4A.click_jinghuaqi_1000times.Test,
                    testcase.huawei_honor4A.click_kongtiao_1000times.Test,
                    testcase.huawei_honor4A.click_STB_1000times.Test,
                    testcase.huawei_honor4A.click_tv_1000times.Test,
                    testcase.huawei_honor4A.connect_manytimes.Test,
                    testcase.huawei_honor4A.detect_disconnect.Test,
                    testcase.huawei_honor4A.lock_unlock.Test,
                    testcase.huawei_honor4A.temperature_error.Test,
                    testcase.huawei_honor4A.bluetooth_off_connected.Test,
                    testcase.huawei_honor4A.check_value_autocontrol.Test,
                    testcase.huawei_honor4A.check_value_clock.Test,
                    testcase.huawei_honor4A.check_value_dingshi_control.Test,
                    testcase.huawei_honor4A.just_wait_connect.Test,
                    testcase.huawei_honor4A.factory_setting.Test,
                    #testcase.huawei_honor4A.connect_two_radar.Test,
                ]
    print "success read huawei_honor4A case list"
    return alltestnames